<template>

  <div>
    <div style="font-size: 50px;color: #2798f4;font-family: 楷体;border-bottom: 1px solid #8c8b8b;">
      我的点赞
    </div>
    <div v-for="like in LikeList" :key="like.id" style="margin-left: 20px;padding-bottom: 10px;height: 70px;">
      <div>
        <span style="color: red">新闻标题：</span>
        <span style="font-size:30px">
          <router-link :to="{path:'/newsDetail',query:{id:like.newsid}}">
          {{like.name}}
         </router-link>
        </span>
      </div>
      <span style="color: #999999">点赞时间:</span><span style="color: #999999">{{like.operTime}}</span>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      LikeList:[],
    }
  },methods: {


  },
  mounted() {
    //获取收藏信息
    this.$http.get("userApi/LikeCtl/LikeList").then((resp) => {
      if (resp.data.code==200){
        this.LikeList = resp.data.data;
      }
    })
  }

}
</script>

